package com.weigee.ktv.view.application

import android.app.Application
import com.pgyersdk.Pgy
import com.pgyersdk.crash.PgyCrashManager
import com.umeng.analytics.b.g.F
import skin.support.app.SkinCardViewInflater
import skin.support.design.app.SkinMaterialViewInflater
import skin.support.SkinCompatManager


/**
 * Created by linde on 2017/5/28.
 *<p/>
 */
class WeigeeApplication : Application()
{
    override fun onCreate()
    {
        super.onCreate()
        SkinCompatManager.init(this)                      // 基础控件换肤初始化
                .addInflater(SkinMaterialViewInflater())  // material design 控件换肤初始化[可选]
                .addInflater(SkinCardViewInflater())      // CardView 控件换肤初始化[可选]
                .loadSkin()
        Pgy.init(this, "304b080cb948182546a62de30b66803e")
        PgyCrashManager.register(this)
    }
}